From d7d738d745c3a8b91bfb009b2ee9a9f67a3b0c5c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonas=20=C3=85dahl?= Date: Mon, 7 Dec 2020 09:41:54 +0100 Subject: [PATCH] tests/animated-resizing: Use gtk_window_default_size() instead This will actually make it resize on-demand, as the default size is the size used when computing the window size when the size is not fixed. --- tests/animated-resizing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/animated-resizing.c b/tests/animated-resizing.c index c9a316a560..bf7a0b68c4 100644 --- a/tests/animated-resizing.c +++ b/tests/animated-resizing.c @@ -123,7 +123,7 @@ on_frame (double progress) window_height = HEIGHT + jitter; } - gtk_widget_set_size_request (gtk_window_get_child (GTK_WINDOW (window)), + gtk_window_set_default_size (GTK_WINDOW (window), window_width, window_height); gtk_widget_queue_draw (window); -- 2.30.2